package com.yoyo.series.app;

import android.os.Bundle;

import com.actionbarsherlock.app.SherlockFragment;
import com.nostra13.universalimageloader.core.DisplayImageOptions;
import com.nostra13.universalimageloader.core.ImageLoader;
import com.yoyo.series.R;

public class BaseFragment extends SherlockFragment {

    protected ImageLoader mImageLoader;
    protected DisplayImageOptions mOptions;

    public BaseFragment() {
        mImageLoader = ImageLoader.getInstance();
    }

    public void onCreate(Bundle bundle) {
        super.onCreate(bundle);
        mOptions = (new com.nostra13.universalimageloader.core.DisplayImageOptions.Builder())
                .showStubImage(R.drawable.loading).showImageOnFail(R.drawable.loading_fail).cacheInMemory().cacheOnDisc().build();
    }

}
